#define CRT SECURE NO WARNINGS 1
#include"PriorityQueue.h"

void test_priority_queue()
{

	yws::priority_queue<int> pq;


	pq.push(3);
	pq.push(1);
	pq.push(2);
	pq.push(5);
	pq.push(0);
	pq.push(1);

	while (!pq.empty())
	{
		cout << pq.top() << " ";
		pq.pop();
	}
	cout << endl;

	int a[] = { 3, 2, 7, 6, 0, 4, 1, 9, 8, 5 };
	//bit::priority_queue<int> heap(a, a+sizeof(a)/sizeof(int));
	yws::priority_queue<int, vector<int>, greater<int>> heap(a, a + sizeof(a) / sizeof(int));

	while (!heap.empty())
	{
		cout << heap.top() << " ";
		heap.pop();
	}
	cout << endl;
}

int main()
{
	test_priority_queue();
	return 0;
}